package com.example.demo1;

import java.time.LocalDateTime;

/**
 * 订单类
 */
public class Order {
    private Integer id;
    private String name;
    private LocalDateTime localDateTime;
    private double price;

    public Order(Integer id, String name, LocalDateTime localDateTime, double price) {
        this.id = id;
        this.name = name;
        this.localDateTime = localDateTime;
        this.price = price;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Order() {

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDateTime getLocalDateTime() {
        return localDateTime;
    }

    public void setLocalDateTime(LocalDateTime localDateTime) {
        this.localDateTime = localDateTime;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return id + "----" + name + "----" + localDateTime + "----" + price;
    }
}
